package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {


    Page<List<NursingProject>> selectByPage(Integer status, String name);

    NursingProjectVo selectById(Integer id);

    Object selectByName(String name);

    void insertNurseproject(NursingProject nursingProject);

    void editStatus(@Param("id") Integer id, @Param("status") Integer status);

    void deleteById(Integer id);

    List<NursingProjectVo> findAll();

    void editNursingProject(NursingProject nursingProjectDto);
}
